package com.mol.market.common.vo;

import android.content.ContentValues;

import com.mol.market.common.util.MarketProvider;

public class UpgradeInfo {
    public String name;
    public String pid;
    public String versionName;
    public int versionCode;
    public String pkgName;
    public String signature;
    public int update;
    public int status;
    public String filePath;
    public String sourceType;

    public ContentValues getContentValues() {
        final ContentValues values = new ContentValues();
        values.put(MarketProvider.COLUMN_P_ID, pid);
        values.put(MarketProvider.COLUMN_P_NEW_VERSION_NAME, versionName);
        values.put(MarketProvider.COLUMN_P_NEW_VERSION_CODE, versionCode);
        values.put(MarketProvider.COLUMN_P_PACKAGE_NAME, pkgName);
        values.put(MarketProvider.COLUMN_P_SIGNATURE, signature);
        values.put(MarketProvider.COLUMN_P_IGNORE, update);
        return values;
    }
}
